<div id="sidebar">
  <?php include('ads/sidebar300x250.php'); ?>
<div class="right" style="margin: 0 0 20px 0;" >

  <form method="get" id="searchform" action="<?php bloginfo('home'); ?>/">

    <div id="search">

      <input class="searchinput" type="text" value="Từ khóa..." onclick="this.value='';" name="s" id="s" />

      <input type="submit" class="searchsubmit" value="TÌM"/>

    </div>

  </form>

</div>

<!--end: search-->
  <div class="tabber">
    <div class="tabbertab">
      <h2>
        <?php _e("Thông báo", 'themejunkie'); ?>
      </h2>
      <ul>
        <?php wp_get_archives('type=postbypost&limit=5&format=custom&before=<li>&after=</li>'); ?>
      </ul>
    </div> <!--end: tabbertab-->
    <div class="tabbertab">
      <h2>
        <?php _e("Văn bản mới nhất", 'themejunkie'); ?>
      </h2>
      <ul>
        <?php mdv_most_commented('5');  ?>
      </ul>
    </div> <!--end: tabbertab-->

	<div class="widget">
		<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Page Right Widget') ) : ?>
		<h3>
		  <?php _e("Page Right Widget", 'themejunkie'); ?>
		</h3>
		<div class="box">
		  <?php _e("Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin semper ultrices tortor quis sodales. Proin scelerisque porttitor tellus, vel dignissim tortor varius quis. Proin diam eros, lobortis sit amet viverra id, eleifend ut tellus. Vivamus sed lacus augue.", 'themejunkie'); ?>
		</div>
    <?php endif; ?>
  </div>

	<div class="box">
            <h2><a href="thu-vien-anh">Thư viện ảnh</a></h2>
		<?php if (function_exists('vslider')) { vslider('vslider_options'); }?>
	</div>
    
    <div class="box image-links">
    <?php
    $links = get_bookmarks();
    ?>
        <h2>Website liên kết</h2>
        <ul>
            <?php foreach($links as $link) { ?>
            <li><a href="<?php echo $link->link_url; ?>" title="<?php echo $link->link_name; ?>" target="_blank"><?php if ($link->link_image && $link->link_image != "") { ?><img width="290px" height="100px" src="<?php echo $link->link_image; ?>" alt="<?php echo $link->link_name; ?>" /><?php } else { echo "<b>$link->link_name</b>"; } ?></a></li>
            <?php } ?>
        </ul>
    </div>
    
    <div class="box statistics">
        <h2>Thống kê:</h2>
        <table>
            <tr>
                <td width="180px">Tổng lượt truy cập:</td>
                <td width="100px" align="right"><b><?php do_shortcode('[total]total[/total]') ?></b></td>
            </tr>
            <tr>
                <td width="180px">Lượt truy cập hôm nay:</td>
                <td width="100px" align="right"><b><?php do_shortcode('[today]today[/today]') ?></b></td>
            </tr>
        </table>
    </div>


  </div> <!--end: tabber-->
  <!--
  <div class="leftwidget">
    <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Page Left Widget') ) : ?>
    <h3>
      <?php _e("Page Left Widget", 'themejunkie'); ?>
    </h3>
    <div class="box">
      <?php _e("Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin semper ultrices tortor quis sodales. Proin scelerisque porttitor tellus, vel dignissim tortor varius quis. Proin diam eros, lobortis sit amet viverra id, eleifend ut tellus. Vivamus sed lacus augue.", 'themejunkie'); ?>
    </div>
    <?php endif; ?>
  </div>
  -->
  <!--end: left widget-->
  <!--
  <div class="rightwidget">
    <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Page Right Widget') ) : ?>
    <h3>
      <?php _e("Page Right Widget", 'themejunkie'); ?>
    </h3>
    <div class="box">
      <?php _e("Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin semper ultrices tortor quis sodales. Proin scelerisque porttitor tellus, vel dignissim tortor varius quis. Proin diam eros, lobortis sit amet viverra id, eleifend ut tellus. Vivamus sed lacus augue.", 'themejunkie'); ?>
    </div>
    <?php endif; ?>
  </div>
  -->
  <!--end: right widget-->
</div>
<!--end: sidebar-->
